New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/geom-subdiv-curve

Package Overview
Dependencies
Maintainers
1
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/geom-subdiv-curve

Freely customizable, iterative nD subdivision curves for open / closed geometries

  • 3.0.31
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
433
decreased by-10.54%
Maintainers
1
Weekly downloads
 
Created
Source

@thi.ng/geom-subdiv-curve

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 201 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

Freely customizable, iterative nD subdivision curves for open / closed geometries. This is a support package for @thi.ng/geom.

Based in principle on:

Available subdivision schemes

The following schemes are available as presets and their effects illustrated.

Chaikin subdivision

SUBDIV_CHAIKIN is supported for open & closed geometries.

SUBDIV_CHAIKIN preset on open geometry

SUBDIV_CHAIKIN preset on closed geometry

Cubic subdivision

SUBDIV_CUBIC is only supported for closed geometries (at current).

SUBDIV_CUBIC preset on closed geometry

Dyn-Levin-Gregory subdivision

SUBDIV_DLG is only supported for closed geometries (at current).

SUBDIV_DLG preset on closed geometry

Displacement subdivision

SUBDIV_DISPLACE is a higher order, customizable subdivision and supported for open & closed geometries.

SUBDIV_DISPLACE preset on open geometry

SUBDIV_DISPLACE preset on closed geometry

Split at midpoints

SUBDIV_MID is supported for open & closed geometries.

SUBDIV_MID preset on open geometry

SUBDIV_MID preset on closed geometry

Split at thirds

SUBDIV_THIRDS is supported for open & closed geometries.

SUBDIV_THIRDS preset on open geometry

SUBDIV_THIRDS preset on closed geometry

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/geom-subdiv-curve

ESM import:

import * as gsc from "@thi.ng/geom-subdiv-curve";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/geom-subdiv-curve"></script>

JSDelivr documentation

For Node.js REPL:

const gsc = await import("@thi.ng/geom-subdiv-curve");

Package sizes (brotli'd, pre-treeshake): ESM: 801 bytes

Dependencies

API

Generated API docs

import * as gsc from "@thi.ng/geom-subdiv-curve";

gsc.subdivide([[0,0], [100,0], [100,100], [0,100]], [gsc.SUBDIV_CHAIKIN], true);

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-geom-subdiv-curve,
  title = "@thi.ng/geom-subdiv-curve",
  author = "Karsten Schmidt",
  note = "https://thi.ng/geom-subdiv-curve",
  year = 2016
}

License

© 2016 - 2025 Karsten Schmidt // Apache License 2.0

Keywords

FAQs

Package last updated on 29 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc